import { defineStore } from 'pinia'
import { get } from '@/utils/request'
 
export const useShopStore = defineStore('shop', {
  state: () => ({
    shopList: []
  }),
  actions: {
    async getHotShop() { 
        try {         
            const res = await get('/shop/list')
            this.shopList = res.data || []
        } catch (error) {
        console.log('请求失败:', error)
        }
    }
  }
})